package test
{
	import flash.display.DisplayObjectContainer;
	import flash.text.TextField;

	public class TmpTest
	{
		public function TmpTest()
		{
		}
		
		/** 向一容器添加一个文本框 */
		public static function addOneTxt(ctn:DisplayObjectContainer):void
		{
			var tf:TextField = new TextField();
			tf.width = 100;
			tf.height = 100;
			tf.border = true;
			tf.text = "测试文字123";
			//tf.x = -50;
			ctn.addChild(tf);
		}
		
	}
}